import request from '@/utils/request'

// 查看告警纪录列表/pole/warning/list
export function getRodWarnListAPI(params) {
  return request({
    url: '/pole/warning/list',
    params
  })
}

// 查看告警记录详情/pole/warning/{id}
export function getRodWarnDetailAPI(id) {
  return request({
    url: '/pole/warning/' + id
  })
}

// 删除告警记录/pole/warning/{id}
export function deleteRodWarnAPI(id) {
  return request({
    url: '/pole/warning/' + id,
    method: 'delete'
  })
}
